

import java.util.Random;

public class Main {
    public static void main(String[] args) {
        String[]  ad = {"104","97","陈奕扬","小豆","小米","小菜","小于","当当","高峰","黄瓜"};//定义字符数组

        Random a = new Random();
        int b = a.nextInt(ad.length);   //生成随机数
        System.out.println("随机抽到的学生为:"+ad[b]);//输出随机数对应的字符数组的索引位置的字符
    }
}
